import request from '@/utils/request'

export function page(data) {
  return request({
    url: '/industry/page',
    method: 'post',
    data
  })
}

export function update(data){
    return request.post(`/industry/update`,data);
}

export function add(data){
   return  request.post(`/industry/add`,data);
}

export function all() {
  return request({
    url: '/industry/all',
    method: 'get',
  })
}


export function drop(data){
  // return  request.post("/industry/delete/"+deptId);
  return request({
    url:`/industry/delete`,
    method:`post`,
    data
  });
}